// 输入一段字符串,把其中的tantan都替换为baibai,如果字符串中不含有tantan,则输出"not find"(不含引号)(不分大小写,输出都为小写)

#include <bits/stdc++.h>
using namespace std;
int main() {
    string s;
    getline(cin, s);
    for (int i = 0; i < s.size(); i++) {
        if (s[i] >= 'A' && s[i] <= 'Z') s[i] += 32;
    }
    int flag = 0;
    while(1) {
        int pos = s.find("tantan");
        if (pos == -1 && flag == 0) {
            cout << "not find" << endl;
            break;
        }
        else if(pos == -1 && flag != 0) {
            cout << s << endl;
            break;
        }
        else {
            s.replace(pos, 6, "baibai");
            flag++;
        }
    }
    
    return 0;
}
